package com.lanyam.travel.base.entity;

import java.sql.Time;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
/**
 * 	景点/酒店实体类
 * @author asus
 *
 */
@TableName("scenic_hotel")
public class ScenicHotel  extends Product{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 景点/旅馆图片的路径
	 * 	主键
	 */
	@JsonProperty(value="img")
	@TableField("img")
	private String img;
	/**
	 * 景点/酒店预留手机号
	 */
	@JsonProperty(value="phone")
	private String phone;
	
	@JsonProperty(value="status")
	@TableField("status")
	private Integer status;
	/**
	 * 酒店名称
	 */
	@JsonProperty(value="supplierName")
	@TableField(exist = false)
	private String supplierName;
	
	/**
	 * 票种的id数组
	 */
	@JsonProperty(value="ticketTypes")
	@TableField(exist = false)
	private List<ProductTicket> ticketTypes;
	
	
	public List<ProductTicket> getTicketTypes() {
		return ticketTypes;
	}
	public void setTicketTypes(List<ProductTicket> ticketTypes) {
		this.ticketTypes = ticketTypes;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	
//	public String toString() {
//		return this.getName() + ";" + this.getLocation() + ";" + ("0".equals(this.getRegion())?"国内":"国外") + ";" + this.getPrice()
//				+ ";" + this.getContent() + ";" + this.getStar() + "星级;评分" + this.getCommentScore() + ";"
//				+ (this.getProductType()==0?"景点":"酒店") + ";" + this.getPhone();
//	}
}
